// dlg.txt

//MK Edit
//mark_quest_dest(zone,x,y,layer,quest);
//	code =
//		sf(,,2);
//		toggle_quest(19,10);
//		award_party_xp(MED_QUEST_XP);
//	break;

begintalkscript;

variables;

short this_town = 53;

begintalknode;
	tag = 1;
	condition = get_sdf(this_town,1) == 0;
	text1 = "The fortifications that block off the Aram Peaks, the Icegate, have two halves. Raasa Suharum and the less disloyal warriors of the Ro were in the east one. The west half has been entirely taken over by rebels.";
	text2 = "They have recently rebuilt the walls of the Upper Icegate, making a small fortress protruding up out of the ice. Without the knowledge of Haven (and probably the Raasas), the rebels violated your laws and built walls. Now the rebels are hiding safely behind them.";
	text3 = "The cold, harsh warriors of the Ro watch you approach through their gates. There are hundreds of them, at least. A miserably small force. One that could never have a chance of successfully fighting off the trained armies of Haven. However, you won't be able to drive them out of here yourself.";
	code =
		sf(this_town,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(this_town,2) == 0 && gf(41,13) > 0;
	text1 = "There are fresh tracks in the dusting of snow here. Booted feet, leading toward the gate to the east.";
	code =
		sf(this_town,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(this_town,3) == 0;
	text1 = "You find a small complex of chambers hidden under the Icegate. They were abandoned for a long time. Then someone came to open them up and give them a light cleaning.";
	text2 = "It's tolerably warm down here. You smell smoke and freshly cooked food. And something else. Herbs? Alchemy? There is a strange, acrid stink in the air.";
	text3 = "At first, it is still and quiet. Then you hear something. The echoes of indistinct voices, coming from farther in.";
	code =
		sf(this_town,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(this_town,4) == 0;
	text1 = "You hear the creaking of wood and the clanking sound of mechanisms being locked into place. It is the familiar sound of ballistas being loaded with spears. The enormous devices are safely behind gates, operated by ka-boars.";
	text2 = "Getting closer will put you at risk of a severe puncturing.";
	code =
		sf(this_town,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(this_town,5) == 0;
	text1 = "__";
	code =
		sf(this_town,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(this_town,6) == 0;
	text1 = "__";
	code =
		sf(this_town,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(this_town,7) == 0;
	text1 = "__";
	code =
		sf(this_town,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(this_town,8) == 0;
	text1 = "__";
	code =
		sf(this_town,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(this_town,9) == 0;
	text1 = "__";
	code =
		sf(this_town,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(this_town,10) == 0;
	text1 = "__";
	code =
		sf(this_town,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(this_town,11) == 0;
	text1 = "__";
	code =
		sf(this_town,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(this_town,12) == 0;
	text1 = "__";
	code =
		sf(this_town,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "Archelnost points the orb at you. _Harvester! I call you! Send fire!_ You are surrounded by a wreath of flame, which burns everyone nearby. The Harvester glows brighter and starts to shake.";
	code =
		set_dialogue_pic(865); //
	break;

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "Archelnost points the orb at you. _Harvester! I call you! Send ice!_ The Harvester glows and vibrates. You are surrounded by a shell of ice, freezing you.";
	code =
		set_dialogue_pic(865); //
	break;

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "Archelnost points the orb at you. _Harvester! I call you! Send destruction!_ Your skin begins to burn. Sickness rises up in you.";
	text2 = "The Harvester is vibrating so hard that Archelnost struggles to keep hold of it. Vionelle looks concerned. Too late.";
	code =
		set_dialogue_pic(865); //
	break;

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "Archelnost holds up the orb. _No! This is not enough! It must be glorious! Harvester, I command you! You must ..._";
	text2 = "And then the Harvester shatters. Archelnost, screaming, is covered with fire.";
	code =
		set_dialogue_pic(865); //
	break;

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "Vionelle takes a mortal wound. As she collapses, she hisses, _I have no regrets. Our tale will be told. The rebellion will ... will ..._ And that is all.";
	code =
		set_dialogue_pic(851); //
	break;

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "Archelnost stumbles, scratching at his skin and screaming. It is not the glorious display he expected. _No! How could they ... The Erudico ... Those madmen! ... They ..._";
	text2 = "And then you silence him with one final blow. His conspiracy has been defeated.";
	code =
		set_dialogue_pic(865); //
	break;

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "Among the ashes and debris on the floor, you see a glint of crystal. Looking closer, you find that the Harvester was not completely destroyed. A long, glowing shard of crystal remains.";
	text2 = "It's warm to the touch, but it seems stable enough. You put it in your pack.";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "You enter a secret, hastily assembled magical workshop. Geld Nas warriors stand guard by the walls. Geld Nas mages are hard at work at the table. Two people are in charge. One is Vionelle. The other is an aging man in long robes.";
	text2 = "The man is holding the reward for their labors. It is a crystal orb, only just crafted. It is still smoking and hissing, and an uncertain light flickers within. All in the room stare at it in awe.";
	text3 = "Then Vionelle sees you. She draws her blade in an instant. The man turns to face you, the crystal orb held out toward you. He says, _Ahhh ... The troublesome Havenite. You have found the goal of your quest, hunter._ As he speaks, he slowly caresses the glowing orb.";
	code =
		set_attitude(30010,10);
		set_dialogue_pic(865); //
	break;
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_Hello again, Vionelle._";
	text1 = "She says, _Hello, [P]. After all your work, you are too late, you ..._";
	text2 = "The man shouts, _Silence!_ She takes a step back and closes her mouth. Her blade is still ready.";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "_I am [P] [N] of Haven. I am here on official business._";
	text1 = "The man smiles. _Yes, I know who you are. I just didn't think I would be so lucky. You have come. I am Master Archelnost. I command this cell of the Geld Nas._";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "_So who are you?_";
	text1 = "_There is no harm in telling you, [P]. I am Master Archelnost. I command this cell of the Geld Nas. You have come to see our triumph._";

begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_A cell of the Geld Nas?_";
	text1 = "_The Geld Nas, when at Deep Post Anelace, split into many small groups, each acting on their own. Losing one cell thus doesn't threaten the others._";
	text2 = "_All cells have their own little projects and specialties._ He holds up the orb. Vionelle involuntarily finds herself reaching for it. Then she jerks her hand back. He says, _The Harvester, and all it will bring, is our project._";
	text3 = "_The Geld Nas refused to see the hard truth. Now I will make them see._";
	
begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_So the Geld Nas doesn't know what you are doing._";
	text1 = "_No. Our leaders are too weak and short-sighted to grab this glorious opportunity. Now the Harvester is in my hands!_";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_And you have your own private project here?_";
	text1 = "Vionelle can't contain herself. _We had a project. It is complete. The Harvester has been created. Now the true work of the Geld Nas will begin!_";
	text2 = "Archelnost nods.";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_Vionelle, are you part of this cell?_";
	text1 = "She smiles. _I was our blade. Archelnost is our craftsman. I brought the knowledge. He used what I brought, and he made the Harvester real._";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "_What is this 'hard truth' you are talking about?_";
	text1 = "_It is a Deep Truth, one that the rest of the Geld Nas are too weak to accept. The Rokaj cannot tolerate conquerors. We can't leave Haven alone and stay true Ro._";
	text2 = "_With this weapon, we will destroy the neutrality of the Geld Nas. Then we will aid in the rebellion._";
	
begintalknode;
	state = 13;
	nextstate = -1;
	condition = gf(59,11) > 0 && gf(59,12) == 0;
	question = "_I have been to Deep Post Anelace._";
	text1 = "Vionelle sneers. _And I'm sure they were so very polite to you. Subservient, even. When even you should fear them!_";
	
begintalknode;
	state = 13;
	nextstate = -1;
	condition = gf(59,11) > 0 && gf(59,12) > 0;
	question = "_I destroyed Deep Post Anelace._";
	text1 = "They are all shocked by this news. Vionelle shouts, _They were cowardly, but they could have been brought to our side. Now we will avenge them!_";
	text2 = "Archelnost clears his throat. _Not yet. Soon._";

begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_You think the Rokaj can defeat Haven?_";
	text1 = "Archelnost says, _Of course! We have the mountains, and we have the will! Our people, if truly motivated, will rise up against you. You can't command our land if all hands are against you!_";
	text2 = "_The power of the Harvester is what will finally push them to action._";

begintalknode;
	state = 13;
	nextstate = 14;
	condition = 1;
	question = "_The other Geld Nas are far wiser than you._";
	text1 = "Vionelle says, _They were born under Haven's boot. They want to die under it. Kill a few of their fellow Ro, enable your rule, and die._";
	text2 = "Archelnost adds, _That was their plan. Now we have the Harvester. We will inspire the people with it. The Geld Nas will have no choice but to support us._";

begintalknode;
	state = 13;
	nextstate = 14;
	condition = 1;
	question = "_So you made the Harvester to defeat Haven?_";
	text1 = "Vionelle says, _This orb won't be enough, of course. It is a spectacular weapon, made by the Ro and the Ro alone. It won't defeat you, though. Our people will._";
	text2 = "Archelnost adds, _The Harvester will inspire the people. They will all rise up. The Geld Nas will have no choice but to support us._";

begintalknode;
	state = 13;
	nextstate = 14;
	condition = 1;
	question = "_Personally, I would rather let the Rokaj stop being our vassal._";
	text1 = "Vionelle and Archelnost look at each other. There is a tense moment. Then they both shake their heads at the same time.";
	text2 = "Archelnost adds, _We can't trust you. The plan continues. The Harvester will inspire the people. They will all rise up. The Geld Nas will have no choice but to support us. The rebellion will succeed._";
	
begintalknode;
	state = 14;
	nextstate = 15;
	condition = 1;
	question = "_What is the Harvester?_";
	text1 = "Archelnost holds up the orb. You note he needs to wear thick leather gloves. It vibrates and hisses and spits out wisps of smoke. _A crystal ball of incredible power. The finest result of the Erudico's craft, though they were too weak-willed to use it properly._";

begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_So you trust the Erudico that much?_";
	text1 = "_Of course. They were sure that this is an incredibly powerful weapon. They took so much effort to hide it. Why would they be wrong about it?_";

begintalknode;
	state = 15;
	nextstate = 16;
	condition = 1;
	question = "_But what does it actually do?_";
	text1 = "_It ..._ They look at each other. They aren't entirely sure. Archelnost holds it toward you. _There are still some questions about that. The notes we took from the Erudico were vague._";
	text2 = "_We will need to experiment on you, I'm afraid. As long as it kills you and does it in a spectacular, inspirational way, it is adequate._";

begintalknode;
	state = 16;
	nextstate = -1;
	condition = 1;
	question = "_You think that you can kill me?_";
	text1 = "_Obviously. The skill and mercilessness of the Geld Nas, combined with the magical power of the Erudico? Unstoppable!_";

begintalknode;
	state = 16;
	nextstate = -1;
	condition = 1;
	question = "_You think it is wise to kill me?_";
	text1 = "_Yes, though not necessary. It will help bring about our goals._";

begintalknode;
	state = 16;
	nextstate = -1;
	condition = 1;
	question = "_How do you think the Queen will react when you kill me?_";
	text1 = "_She will be furious. She will attack the Rokaj. Her rage will cause her to lose control, and that will make it even easier to outwit her._";

begintalknode;
	state = 16;
	nextstate = -1;
	condition = 1;
	question = "_Vionelle, this is your last chance to stop this madness._";
	text1 = "Vionelle looks you in the eyes. _I will die to free the Rokaj. We have been enslaved long enough. It is time._";

begintalknode;
	state = 16;
	nextstate = -1;
	condition = 1;
	question = "_I think there is still a deal to be made._";
	text1 = "Archelnost says, _Oh, yes. Your deals. Your contracts. Your scrolls. Haven is so clever. They use wealth and words to weaken our will._";
	text2 = "_No. Enough._ He holds out the Harvester. It begins to glow. The room grows very warm. A field of energy envelops him and Vionelle, protecting them. _Die, tormentor._";
	action = END_TALK;
	
begintalknode;
	state = 16;
	nextstate = -1;
	condition = 1;
	question = "_In the name of the Queen of Haven, you will surrender to me, vassal._";
	text1 = "Archelnost says, _It is always the destiny of the Rokaj to throw off our conquerors. If we can't be free of Haven, better that we all die._";
	text2 = "He holds out the Harvester. It begins to glow. The room grows very warm. A field of energy envelops him and Vionelle, protecting them. _This is the end of you, tormentor._";
	action = END_TALK;
	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				